<?php

namespace App\Modules\Admin\Entities\Mall;

use App\Models\Model;
use PhpParser\Node\Expr\AssignOp\Mod;

class GoodsOrderAddressModel extends Model
{

    protected $table='goods_order_address';
    protected $primaryKey='id';
    public $timestamps=false;

    public function getAddressInfo($orderId)
    {
        return $this->where(['order_id'=>$orderId])->first(['id','user_name','phone','province','city','county','detail']);
    }
}
